# generated with cmake/gen_cmake_skeleton.py, DO NOT MODIFY.
set(PUBLIC_HEADERS
    online-audio-source.h
    online-decodable.h
    online-faster-decoder.h
    online-feat-input.h
    online-tcp-source.h
    onlinebin-util.h
)

add_library(kaldi-online
    online-audio-source.cc
    online-decodable.cc
    online-faster-decoder.cc
    online-feat-input.cc
    online-tcp-source.cc
    onlinebin-util.cc
)

target_include_directories(kaldi-online PUBLIC 
     $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/..>
     $<INSTALL_INTERFACE:include/kaldi>
)

target_link_libraries(kaldi-online PUBLIC
    kaldi-decoder
    kaldi-lat
    kaldi-hmm
    kaldi-feat
    kaldi-transform
    kaldi-gmm
    kaldi-tree
    kaldi-util
    kaldi-matrix
    kaldi-base
    -lcblas
    -llapack
)

if(KALDI_BUILD_TEST)
    add_kaldi_test_executable(NAME online-feat-test SOURCES online-feat-test.cc DEPENDS kaldi-online)
endif()

install(TARGETS kaldi-online
    EXPORT kaldi-targets
    ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT kaldi
    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT kaldi
    RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT kaldi
)
install(FILES ${PUBLIC_HEADERS} DESTINATION include/kaldi/online COMPONENT kaldi)

